<h2 style="color:#FF0000">Danh Mục Dự Án</h2>
<p style="text-align:left"><?php echo $this->pagination->create_links();?></p>
<div>
	<img width="30px" src="<?php echo base_url();?>media/images/default/add.png" onclick="window.location='<?php echo base_url(); ?>index.php/project/addProject'">
	<img width="30px" src="<?php echo base_url();?>media/images/default/delete.png" onclick='submitDelForm($("form[name=formIndex]").attr("action"))'>
</div>
 <table border="1px" cellspacing="0" >
 	<tr>
 	<th width='1%' scope='col' ><input  name='chkall' type='checkbox' onclick='checkAll()' value='0' /></th>
 		<th>Mã</th>
 		<th>Mã dự án</th>
 		<th>Hình ảnh</th>
 		<th>Sửa</th>
 		<th style="padding: 5px">Xóa</th>
 	</tr>
 	<form action="<?php echo base_url();?>index.php/project" method="post" name="formIndex">
 		<input type="hidden" name="hidID" id="hidID">
 	
 <?php
 	$str='';
	foreach ($project as $row)
	{
		$str.= '<tr>';
		$str.= '<td  style="padding: 5px" align="center"><input type="checkbox" id="chkid" name="chkid[]" value="'.$row->id.'" /></td>';
		$str.='<td align="center">'.$row->id.'</td>';
		$str.='<td align="center" >'.$row->name.'</td>';
		$str.='<td align="center"><img  src="'.base_url().'media/images/default/publish.png" onclick="window.location=\''.base_url().'index.php/library/index/'.$row->id.'\'" ></td>';		
		$str.='<td align="center"><img  src="'.base_url().'media/images/default/edit.png" onclick="window.location=\''.base_url().'index.php/project/update/'.$row->id.'\'" ></td>';
		$str.='<td align="center"><img  src="'.base_url().'media/images/default/delete.png" onclick="deleteOneItem($(\'form[name=formIndex]\').attr(\'action\'),'.$row->id.')"></td>';
	}
	echo $str;
?>
</form>
 </table>
 